package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 车辆对象 l_truck
 *
 * @author zyb
 * @date 2022-01-02
 */
@Data
public class LTruck extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @TableId(value = "tid", type = IdType.AUTO)
    private Long tid;

    /** 车牌 */
    @Excel(name = "车牌")
    private String truckcode;

    /** 发动机 */
    @Excel(name = "发动机")
    private String enginecode;

    /** 车架号 */
    @Excel(name = "车架号")
    private String framecode;

    /** 司机ID */
    @Excel(name = "司机ID")
    private Long driverid;

    /** 品牌型号 */
    @Excel(name = "品牌型号")
    private String trucktype;

    /** 随车手机 */
    @Excel(name = "随车手机")
    private String tel;

    /** 区域ID */
    @Excel(name = "区域ID")
    private Long areaid;

    /** 停用 */
    @Excel(name = "停用")
    private Integer closed;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("tid", getTid())
            .append("truckcode", getTruckcode())
            .append("enginecode", getEnginecode())
            .append("framecode", getFramecode())
            .append("driverid", getDriverid())
            .append("trucktype", getTrucktype())
            .append("tel", getTel())
            .append("areaid", getAreaid())
            .append("remark", getRemark())
            .append("closed", getClosed())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
